package cn.ibdsr.human.util;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: lvyou
 * @description: 
 * @date: 2020-03-04 
 * @lastModified:
 *
 * Date           Author               Description
 * ------------------------------------------------------
 * 2020-03-04     lvyou                修改记录
 */
public class ResponseUtil {
    private static final ThreadLocal<HttpServletResponse> THREAD_RESPONSE = new ThreadLocal<HttpServletResponse>();

    public static void setResponse(HttpServletResponse response) {
        THREAD_RESPONSE.set(response);
    }

    public static HttpServletResponse getResponse() {
        return THREAD_RESPONSE.get();
    }

    public static void remove(){
        THREAD_RESPONSE.remove();
    }
}
